﻿using FluentNHibernate.Mapping;
using Wayloop.Blog.Core.Data.Entities;


namespace Wayloop.Blog.DataAccess.Mappings
{
    public abstract class AbstractEntityMap<TEntity> : ClassMap<TEntity> where TEntity : AbstractEntity
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AbstractEntityMap{TEntity}"/> class.
        /// </summary>
        protected AbstractEntityMap()
        {
            MapAbstractModel();
        }


        /// <summary>
        /// Maps the abstract entity commonalities.
        /// </summary>
        protected void MapAbstractModel()
        {
            Id(m => m.Id);
        }
    }
}